package com.retail.booking.mapper;

import com.retail.booking.entity.po.BookingShareRecordPo;
import com.retail.booking.entity.request.BookingShareRecordRequest;
import com.retail.core.common.CommonMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* 海报分享记录 -每分享一次，生成一次记录 Mapper
* @author Administrator
*/
@Mapper
public interface BookingShareRecordMapper extends CommonMapper<BookingShareRecordRequest, BookingShareRecordPo> {

    /**
     * 得到最后一次分享记录
     * @param userId
     * @param posterId
     * @param statusFlag
     * @param delFlag
     * @return
     */
    BookingShareRecordPo getLast1ShareRecord(@Param("userId") Long userId, @Param("posterId") Long posterId, @Param("statusFlag") Integer statusFlag, @Param("delFlag") Integer delFlag);
}
